package com.liu.shiro.controller;

import com.liu.shiro.entity.JsonData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 *  具有admin角色可以访问
 */
@RestController
@RequestMapping("admin")
public class AdminController {

    @RequestMapping("/video/order")
    public JsonData findVideoPlayRecord(){

        Map<String, String> recordMap = new HashMap<>();
        recordMap.put("微服务全家桶AlibabaCloud","180元");
        recordMap.put("Kafka 消息队列 ","288元");
        recordMap.put("分布式缓存Redis6.X","399元");

        return JsonData.buildSuccess(recordMap);
    }

}
